\hypertarget{ks0108_8c}{
\section{front\_\-panel/ks0108.c File Reference}
\label{ks0108_8c}\index{front\_\-panel/ks0108.c@{front\_\-panel/ks0108.c}}
}
Graphic LCD driver for HD61202/KS0108 displays.  


{\tt \#include $<$avr/io.h$>$}\par
{\tt \#include $<$avr/interrupt.h$>$}\par
{\tt \#include \char`\"{}../global.h\char`\"{}}\par
{\tt \#include \char`\"{}ks0108.h\char`\"{}}\par
{\tt \#include \char`\"{}glcd.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hypertarget{ks0108_8c_f595d74adc1f2f80f8c87128aaf6d720}{
void \textbf{glcd\_\-init\_\-hw} (void)}
\label{ks0108_8c_f595d74adc1f2f80f8c87128aaf6d720}

\item 
\hypertarget{ks0108_8c_2dc02a6b1e8d4d63ee58e725290bd150}{
void \textbf{glcd\_\-controller\_\-select} (u08 controller)}
\label{ks0108_8c_2dc02a6b1e8d4d63ee58e725290bd150}

\item 
\hypertarget{ks0108_8c_b68f265519f54c981d10a92c103370a8}{
void \textbf{glcd\_\-busy\_\-wait} (u08 controller)}
\label{ks0108_8c_b68f265519f54c981d10a92c103370a8}

\item 
\hypertarget{ks0108_8c_908a5d205a533277b5595cb85c2d3fe8}{
void \textbf{glcd\_\-control\_\-write} (u08 controller, u08 data)}
\label{ks0108_8c_908a5d205a533277b5595cb85c2d3fe8}

\item 
\hypertarget{ks0108_8c_14cc330c5e187f1569afaad56538a93c}{
u08 \textbf{glcd\_\-control\_\-read} (u08 controller)}
\label{ks0108_8c_14cc330c5e187f1569afaad56538a93c}

\item 
\hypertarget{ks0108_8c_883ae2b07c7bd2d07e95353ed222f917}{
void \textbf{glcd\_\-data\_\-write} (u08 data)}
\label{ks0108_8c_883ae2b07c7bd2d07e95353ed222f917}

\item 
\hypertarget{ks0108_8c_b9907c9f27aaa97de0ca4461d1ab6ac2}{
u08 \textbf{glcd\_\-data\_\-read} (void)}
\label{ks0108_8c_b9907c9f27aaa97de0ca4461d1ab6ac2}

\item 
\hypertarget{ks0108_8c_d93eddcde3daa090c6ece5305955ff37}{
void \textbf{glcd\_\-reset} (u08 reset\_\-state)}
\label{ks0108_8c_d93eddcde3daa090c6ece5305955ff37}

\item 
\hypertarget{ks0108_8c_8642312500e3c2276186b508d5eda195}{
u08 \textbf{glcd\_\-get\_\-x\_\-address} ()}
\label{ks0108_8c_8642312500e3c2276186b508d5eda195}

\item 
\hypertarget{ks0108_8c_356849f26a75c23f7a425535673b587b}{
u08 \textbf{glcd\_\-get\_\-y\_\-address} ()}
\label{ks0108_8c_356849f26a75c23f7a425535673b587b}

\item 
\hypertarget{ks0108_8c_52f3f5e12b41ad2f8ce6968d70b270a6}{
void \textbf{glcd\_\-set\_\-x\_\-address} (u08 xAddr)}
\label{ks0108_8c_52f3f5e12b41ad2f8ce6968d70b270a6}

\item 
\hypertarget{ks0108_8c_e9921d02659162adc5c80edaaa00ec41}{
void \textbf{glcd\_\-set\_\-y\_\-address} (u08 yAddr)}
\label{ks0108_8c_e9921d02659162adc5c80edaaa00ec41}

\item 
\hypertarget{ks0108_8c_ebb115f19841e2797ed3e73e5d8488a8}{
void \hyperlink{ks0108_8c_ebb115f19841e2797ed3e73e5d8488a8}{glcd\_\-init} ()}
\label{ks0108_8c_ebb115f19841e2797ed3e73e5d8488a8}

\begin{CompactList}\small\item\em Initialize the display, clear it, and prepare it for access. \item\end{CompactList}\item 
\hypertarget{ks0108_8c_380c787b62bfd450a12c90111ec56426}{
void \hyperlink{ks0108_8c_380c787b62bfd450a12c90111ec56426}{glcd\_\-home} (void)}
\label{ks0108_8c_380c787b62bfd450a12c90111ec56426}

\begin{CompactList}\small\item\em Set display memory access point back to upper,left corner. \item\end{CompactList}\item 
\hypertarget{ks0108_8c_feecdc62c85f9151a607c15b23befe4e}{
void \hyperlink{ks0108_8c_feecdc62c85f9151a607c15b23befe4e}{glcd\_\-clear\_\-screen} (void)}
\label{ks0108_8c_feecdc62c85f9151a607c15b23befe4e}

\begin{CompactList}\small\item\em Clear the display. \item\end{CompactList}\item 
\hypertarget{ks0108_8c_10e82ebaa327338315012fcdeeda0969}{
void \hyperlink{ks0108_8c_10e82ebaa327338315012fcdeeda0969}{glcd\_\-start\_\-line} (u08 start)}
\label{ks0108_8c_10e82ebaa327338315012fcdeeda0969}

\begin{CompactList}\small\item\em Set display memory access point to row \mbox{[}line\mbox{]} and column \mbox{[}col\mbox{]} assuming 5x7 font. \item\end{CompactList}\item 
\hypertarget{ks0108_8c_d2a49072f84a8a0d733abb18415330b6}{
void \hyperlink{ks0108_8c_d2a49072f84a8a0d733abb18415330b6}{glcd\_\-set\_\-address} (u08 x, u08 yLine)}
\label{ks0108_8c_d2a49072f84a8a0d733abb18415330b6}

\begin{CompactList}\small\item\em Set display memory access point to \mbox{[}x\mbox{]} horizontal pixel and \mbox{[}y\mbox{]} vertical line. \item\end{CompactList}\item 
\hypertarget{ks0108_8c_f72a547a292fd3c253e590aeaf68a114}{
void \hyperlink{ks0108_8c_f72a547a292fd3c253e590aeaf68a114}{glcd\_\-goto\_\-char} (u08 line, u08 col)}
\label{ks0108_8c_f72a547a292fd3c253e590aeaf68a114}

\begin{CompactList}\small\item\em Set display memory access point to row \mbox{[}line\mbox{]} and column \mbox{[}col\mbox{]} assuming 5x7 font. \item\end{CompactList}\item 
\hypertarget{ks0108_8c_826904cc0f64d1879cf63aec34d4374f}{
void \hyperlink{ks0108_8c_826904cc0f64d1879cf63aec34d4374f}{glcd\_\-delay} (u16 p)}
\label{ks0108_8c_826904cc0f64d1879cf63aec34d4374f}

\begin{CompactList}\small\item\em Generic delay routine for timed glcd access. \item\end{CompactList}\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
\hypertarget{ks0108_8c_73b66295b2f02792e413b04c216872c9}{
GrLcdStateType \textbf{GrLcdState}}
\label{ks0108_8c_73b66295b2f02792e413b04c216872c9}

\end{CompactItemize}


\subsection{Detailed Description}
Graphic LCD driver for HD61202/KS0108 displays. 



Definition in file \hyperlink{ks0108_8c-source}{ks0108.c}.